package com.liu.annotation_02;

import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;

public class reflectText {
    public static void main(String[] args) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException {
        Class<Stu> c = Stu.class;

        Constructor c0=c.getDeclaredConstructor();
        c0.newInstance(null);
        try {
            c.newInstance();
        } catch (InstantiationException e) {
            e.printStackTrace();
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        }
    }
}
class Stu {

}